package com.itlong.cloud.operate.resource;

import com.itlong.cloud.POJO.DTO.operate.OperateRobotLogGetPageDTO;
import com.itlong.cloud.POJO.VO.operate.OperateRobotLogGetPageVO;
import com.itlong.cloud.noncore.operate.IOperateRobotLogServiceClient;
import com.itlong.cloud.operate.service.IOperateRobotLogService;
import com.itlong.cloud.utils.page.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <desc>
 *      运营-机器人操作日志管理暴露接口实现类
 * </desc>
 *
 * @createDate 2018/10/12
 */
@RestController
public class OperateRobotLogServiceResource implements IOperateRobotLogServiceClient {

    @Autowired
    private IOperateRobotLogService iOperateRobotLogService;

    /**
     * <desc>
     *      分页查询机器人操作日志
     * </desc>
     *
     * @param operateRobotLogGetPageDTO 查询参数
     * @return 查询结果
     * @author wangzhi
     * @createDate 2018/10/12
     */
    @Override
    @PostMapping(path = "operate/robotLog/getRobotLogByPage")
    public Page<OperateRobotLogGetPageVO> getRobotLogByPage(@RequestBody OperateRobotLogGetPageDTO operateRobotLogGetPageDTO) throws Exception {
        return iOperateRobotLogService.getRobotLogByPage(operateRobotLogGetPageDTO);
    }
}
